package com.byb.server.repository;

import com.byb.server.domain.IllnessInfo;
import org.springframework.stereotype.Repository;

import org.springframework.data.jpa.repository.*;
import org.springframework.data.repository.query.Param;
import java.util.List;

/**
 * Spring Data JPA repository for the IllnessInfo entity.
 */
@SuppressWarnings("unused")
@Repository
public interface IllnessInfoRepository extends JpaRepository<IllnessInfo, Long> {

    List<IllnessInfo> findAllByProductIdAndTypeOfCaseId(@Param("id")Long id, @Param("types")Long types);

}
